package com.icss.clothes.cotroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value ="/address")
public class AddressController {
    //用于跳转弹窗页面的控制器
    @RequestMapping(value = "/toAddressAdd")
    public String toAddressAdd(){
        return "AddressAdd";
    }
    //用于跳转修改弹窗的控制器
    @RequestMapping(value = "/toUpdateAddress")
    public String toUpdateAddress(){
        return "updateAddress";
    }
    //用于实现修改收货地址的控制器方法
    @RequestMapping("/toAddress")
    public ModelAndView toAddress(){
        ModelAndView modelAndView=new ModelAndView("address");
        return modelAndView;
    }
}
